#!/usr/bin/python
"""
Test suite for all Ignatz unit tests.

Copyright 2008 Ryan Barrett
"""

__author__ = 'Ryan Barrett <ignatz at ryanb dot org>'
__url__ = 'http://code.google.com/p/ignatz/'

import glob
import unittest


def main():
  """Runs the tests in all *_test.py files in this directory."""
  files = glob.glob('*_test.py')
  modules = [f[:-3] for f in files]

  suite = unittest.TestSuite()
  for m in modules:
    suite.addTest(unittest.defaultTestLoader.loadTestsFromName(m))

  return unittest.TextTestRunner().run(suite)


if __name__ == '__main__':
  main()
